package com.techzhi.address_server.autoconfigure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "address")
public class AddressProperties {
    private boolean enabled = true;
    private Cache cache = new Cache();

    @Data
    public static class Cache {
        private boolean enabled = true;
        private long timeout = 86400;
    }
}
